package sk.xorty;

import sk.xorty.domain.Trade;

import java.util.Random;

public class TradeFactory {

    private TradeFactory() {}

    private static Random generator = new Random(System.currentTimeMillis());

    public static Trade createTrade() {
        Trade t = new Trade();
        t.setId(String.valueOf(1000 + generator.nextInt(3000)));
        t.setAccount("B12D45");
        t.setDirection("BUY");
        t.setStatus("NEW");

        return t;
    }

}
